home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / OLECTRLS.HPP < prev    next >
C/C++ Source or Header  |  1997-02-13  |  18KB  |  440 lines

  1. //----------------------------------------------------------------------------
  2. // OleCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: OleCtrls.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef OleCtrlsHPP
  6. #define OleCtrlsHPP
  7. //----------------------------------------------------------------------------
  8. #include <OleAuto.hpp>
  9. #include <Graphics.hpp>
  10. #include <Menus.hpp>
  11. #include <Forms.hpp>
  12. #include <Controls.hpp>
  13. #include <Classes.hpp>
  14. #include <SysUtils.hpp>
  15. #include <OleCtl.hpp>
  16. #include <OLE2.hpp>
  17. #include <Messages.hpp>
  18. #include <Windows.hpp>
  19. #include <System.hpp>
  20. #pragma warn -par
  21. #pragma warn -hid 
  22. #pragma warn -inl
  23.  
  24. namespace Olectrls
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. class __declspec(delphiclass) TOleClientSite;
  28. class __declspec(delphiclass) TOleControl;
  29. struct TControlData;
  30. typedef TControlData *PControlData;
  31.  
  32. class __declspec(delphiclass) TOleControlSite;
  33. class __declspec(pascalimplementation) TOleControlSite : public Olectl::IOleControlSite
  34. {
  35.     typedef Olectl::IOleControlSite inherited;
  36.     
  37. private:
  38.     TOleControl* FControl;
  39.     
  40. public:
  41.     __fastcall TOleControlSite(TOleControl* Control);
  42.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  43.     virtual long __stdcall AddRef(void);
  44.     virtual long __stdcall Release(void);
  45.     virtual long __stdcall OnControlInfoChanged(void);
  46.     virtual long __stdcall LockInPlaceActive(DWord fLock);
  47.     virtual long __stdcall GetExtendedControl(Ole2::IDispatch* &disp);
  48.     virtual long __stdcall TransformCoords(POINT &ptlHimetric, POINTF &ptfContainer, long flags);
  49.         
  50.     virtual long __stdcall TranslateAccelerator(Windows::PMsg msg, long grfModifiers);
  51.     virtual long __stdcall OnFocus(DWord fGotFocus);
  52.     virtual long __stdcall ShowPropertyFrame(void);
  53. public:
  54.     /* TObject.Destroy */ __fastcall virtual ~TOleControlSite(void) { }
  55.     
  56. };
  57.  
  58. class __declspec(delphiclass) TOleInPlaceSite;
  59. class __declspec(pascalimplementation) TOleInPlaceSite : public Ole2::IOleInPlaceSite
  60. {
  61.     typedef Ole2::IOleInPlaceSite inherited;
  62.     
  63. private:
  64.     TOleControl* FControl;
  65.     
  66. public:
  67.     __fastcall TOleInPlaceSite(TOleControl* Control);
  68.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  69.     virtual long __stdcall AddRef(void);
  70.     virtual long __stdcall Release(void);
  71.     virtual long __stdcall GetWindow(HWND &wnd);
  72.     virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode);
  73.     virtual long __stdcall CanInPlaceActivate(void);
  74.     virtual long __stdcall OnInPlaceActivate(void);
  75.     virtual long __stdcall OnUIActivate(void);
  76.     virtual long __stdcall GetWindowContext(Ole2::IOleInPlaceFrame* &frame, Ole2::IOleInPlaceUIWindow* 
  77.         &doc, Windows::TRect &rcPosRect, Windows::TRect &rcClipRect, OLEINPLACEFRAMEINFO &frameInfo);
  78.     virtual long __stdcall Scroll(const POINT &scrollExtent);
  79.     virtual long __stdcall OnUIDeactivate(DWord fUndoable);
  80.     virtual long __stdcall OnInPlaceDeactivate(void);
  81.     virtual long __stdcall DiscardUndoState(void);
  82.     virtual long __stdcall DeactivateAndUndo(void);
  83.     virtual long __stdcall OnPosRectChange(const Windows::TRect &rcPosRect);
  84. public:
  85.     /* TObject.Destroy */ __fastcall virtual ~TOleInPlaceSite(void) { }
  86.     
  87. };
  88.  
  89. class __declspec(delphiclass) TOleInPlaceFrame;
  90. class __declspec(pascalimplementation) TOleInPlaceFrame : public Ole2::IOleInPlaceFrame
  91. {
  92.     typedef Ole2::IOleInPlaceFrame inherited;
  93.     
  94. private:
  95.     TOleControl* FControl;
  96.     
  97. public:
  98.     __fastcall TOleInPlaceFrame(TOleControl* Control);
  99.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  100.     virtual long __stdcall AddRef(void);
  101.     virtual long __stdcall Release(void);
  102.     virtual long __stdcall GetWindow(HWND &wnd);
  103.     virtual long __stdcall ContextSensitiveHelp(DWord fEnterMode);
  104.     virtual long __stdcall GetBorder(Windows::TRect &rectBorder);
  105.     virtual long __stdcall RequestBorderSpace(const Windows::TRect &borderwidths);
  106.     virtual long __stdcall SetBorderSpace(Windows::PRect pborderwidths);
  107.     virtual long __stdcall SetActiveObject(Ole2::IOleInPlaceActiveObject* activeObject, wchar_t * pszObjName
  108.         );
  109.     virtual long __stdcall InsertMenus(HMENU hmenuShared, OLEMENUGROUPWIDTHS &menuWidths);
  110.     virtual long __stdcall SetMenu(HMENU hmenuShared, HMENU holemenu, HWND hwndActiveObject);
  111.     virtual long __stdcall RemoveMenus(HMENU hmenuShared);
  112.     virtual long __stdcall SetStatusText(wchar_t * pszStatusText);
  113.     virtual long __stdcall EnableModeless(DWord fEnable);
  114.     virtual long __stdcall TranslateAccelerator(MSG &msg, Word wID);
  115. public:
  116.     /* TObject.Destroy */ __fastcall virtual ~TOleInPlaceFrame(void) { }
  117.     
  118. };
  119.  
  120. class __declspec(delphiclass) TAmbientDispatch;
  121. class __declspec(pascalimplementation) TAmbientDispatch : public Ole2::IDispatch
  122. {
  123.     typedef Ole2::IDispatch inherited;
  124.     
  125. private:
  126.     TOleControl* FControl;
  127.     
  128. public:
  129.     __fastcall TAmbientDispatch(TOleControl* Control);
  130.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  131.     virtual long __stdcall AddRef(void);
  132.     virtual long __stdcall Release(void);
  133.     virtual long __stdcall GetTypeInfoCount(int &ctinfo);
  134.     virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
  135.     virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long 
  136.         lcid, Ole2::PDispIDList rgdispid);
  137.     virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS 
  138.         &dispParams, System::PVariant varResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
  139. public:
  140.         
  141.     /* TObject.Destroy */ __fastcall virtual ~TAmbientDispatch(void) { }
  142.     
  143. };
  144.  
  145. class __declspec(delphiclass) TEventDispatch;
  146. class __declspec(pascalimplementation) TEventDispatch : public Ole2::IDispatch
  147. {
  148.     typedef Ole2::IDispatch inherited;
  149.     
  150. private:
  151.     TOleControl* FControl;
  152.     
  153. public:
  154.     __fastcall TEventDispatch(TOleControl* Control);
  155.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  156.     virtual long __stdcall AddRef(void);
  157.     virtual long __stdcall Release(void);
  158.     virtual long __stdcall GetTypeInfoCount(int &ctinfo);
  159.     virtual long __stdcall GetTypeInfo(int itinfo, long lcid, Ole2::ITypeInfo* &tinfo);
  160.     virtual long __stdcall GetIDsOfNames(const GUID &iid, Ole2::POleStrList rgszNames, int cNames, long 
  161.         lcid, Ole2::PDispIDList rgdispid);
  162.     virtual long __stdcall Invoke(long dispIDMember, const GUID &iid, long lcid, Word flags, DISPPARAMS 
  163.         &dispParams, System::PVariant varResult, Ole2::PExcepInfo excepInfo, Windows::PInteger argErr);
  164. public:
  165.         
  166.     /* TObject.Destroy */ __fastcall virtual ~TEventDispatch(void) { }
  167.     
  168. };
  169.  
  170. class __declspec(delphiclass) TPropertyNotifySink;
  171. class __declspec(pascalimplementation) TPropertyNotifySink : public Olectl::IPropertyNotifySink
  172. {
  173.     typedef Olectl::IPropertyNotifySink inherited;
  174.     
  175. private:
  176.     TOleControl* FControl;
  177.     
  178. public:
  179.     __fastcall TPropertyNotifySink(TOleControl* Control);
  180.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  181.     virtual long __stdcall AddRef(void);
  182.     virtual long __stdcall Release(void);
  183.     virtual long __stdcall OnChanged(long dispid);
  184.     virtual long __stdcall OnRequestEdit(long dispid);
  185. public:
  186.     /* TObject.Destroy */ __fastcall virtual ~TPropertyNotifySink(void) { }
  187.     
  188. };
  189.  
  190. class __declspec(delphiclass) TSimpleFrameSite;
  191. class __declspec(pascalimplementation) TSimpleFrameSite : public Olectl::ISimpleFrameSite
  192. {
  193.     typedef Olectl::ISimpleFrameSite inherited;
  194.     
  195. private:
  196.     TOleControl* FControl;
  197.     
  198. public:
  199.     __fastcall TSimpleFrameSite(TOleControl* Control);
  200.     virtual long __stdcall QueryInterface(const GUID &iid, void *obj);
  201.     virtual long __stdcall AddRef(void);
  202.     virtual long __stdcall Release(void);
  203.     virtual long __stdcall PreMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long &Cookie);
  204.         
  205.     virtual long __stdcall PostMessageFilter(HWND wnd, int msg, int wp, int lp, int &res, long Cookie);
  206.         
  207. public:
  208.     /* TObject.Destroy */ __fastcall virtual ~TSimpleFrameSite(void) { }
  209.     
  210. };
  211.  
  212. typedef short TOleEnum;
  213.  
  214. class __declspec(delphiclass) TEnumPropDesc;
  215. class __declspec(pascalimplementation) TOleControl : public Controls::T